<!-- 
  @Author: lianlianzan(13040@qq.com)
  @Date:   2020-12-28 15:08:59
  @Last Modified by:   lianlianzan(13040@qq.com)
  @Last Modified time: 2020-12-28 15:08:59
-->
{extend name="$_tpl_public_layout_ace"/}


{block name="breadcrumb"}
<ul class="breadcrumb">
	<li><i class="fa fa-home home-icon"></i><a href="{:url('admin/index/index')}">{$configInfo['site_title']}</a></li>
	<li><a href="{:url('seatsel_manage/voucher/index')}">{$sideName}</a></li>
</ul>
{/block}


{block name="pageheader"}
<h1>
	{$sideName}
</h1>
{/block}


{block name="content"}
<form action="{:url('seatsel_manage/voucher/doAdd')}" method="post" class="form-horizontal J_ajaxForm">
	<input type="hidden" name="id" value="{$id}" />

	<div class="form-group">
		<label class="col-sm-2 control-label">名称</label>
		<div class="col-sm-5">
			<input type="text" name="data[name]" value="{$info['name']}" class="form-control" />
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">类型</label>
		<div class="col-sm-5">
			<?php echo optionRadioHtmlB(config('voucher_type_config'), 'data[type]', $info['type']); ?>
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">面额</label>
		<div class="col-sm-5">
			<input type="text" name="data[real_amount]" value="{$info['real_amount']}" class="form-control" />
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">库存</label>
		<div class="col-sm-5">
			<input type="text" name="data[stock_num]" value="{$info['stock_num']}" class="form-control" />
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">每个用户领取次数</label>
		<div class="col-sm-5">
			<input type="text" name="data[limit_one_num]" value="{$info['limit_one_num']}" class="form-control" />
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">过期时间(秒)</label>
		<div class="col-sm-5">
			<input type="text" name="data[expire_sec]" value="{$info['expire_sec']}" class="form-control" />
		</div>
		<div class="col-sm-5 help-block">自领取时间算起</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">状态</label>
		<div class="col-sm-5">
			<?php echo isOpenRadioHtmlB('data[status]', $info['status']); ?>
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="clearfix form-actions">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-primary btn-sm J_ajaxSubmit">保存修改</button>
		</div>
	</div>
</form>
{/block}


{block name="script"}
{/block}